package com.nomito.minimito.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nomito.minimito.common.utils.PageUtils;
import com.nomito.minimito.common.utils.Query;

import com.nomito.minimito.dao.SqActivityCommentDao;
import com.nomito.minimito.entity.SqActivityCommentEntity;
import com.nomito.minimito.service.SqActivityCommentService;


@Service("sqActivityCommentService")
public class SqActivityCommentServiceImpl extends ServiceImpl<SqActivityCommentDao, SqActivityCommentEntity> implements SqActivityCommentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SqActivityCommentEntity> page = this.page(
                new Query<SqActivityCommentEntity>().getPage(params),
                new QueryWrapper<SqActivityCommentEntity>()
        );

        return new PageUtils(page);
    }

}